
import java.util.Scanner;
import java.util.Random;
class person{
	
	private int curFloor=1;
	private int targetFloor=1;
	Scanner sc = new Scanner(System.in);
	Random r = new Random();

	public person(int x){
		this.setCurFloor(x);
		//this.setTargetFloor();
	}

	private void setCurFloor(int x){
		this.curFloor = x/10;
		if(x%10==1) goDown();
		else goUp();
	}
	private void goUp(){
		targetFloor=r.nextInt(6-curFloor)+curFloor;
		if(targetFloor==curFloor) targetFloor++;
		else if (targetFloor>6) targetFloor=6;
	}
	private void goDown(){
		targetFloor = r.nextInt(curFloor-1);
		if(targetFloor==0) targetFloor++;
	}
	public int getcurFloor(){
		System.out.println(curFloor+"is arriving!!!!!!!!!!!!!!!!!!");
		return curFloor;
	}
	public int getTargetFloor(){
		return targetFloor;
	}
	public String getDirection(){
		if((curFloor-targetFloor)>0) return "down";
		else return "up";
	}
}